using System;
using System.Collections.Generic;
using System.Text;

namespace Lutos.Data
{
    public class CategoryElement
    {
        public CategoryElement()
        {
        }

        public static string Dfa = "abc";
        public CategoryElement(CategoryTree.CategoryNode node)
        {
            this.CreationTime = node.CreationTime;
            this.EmptyTime = node.EmptyTime;
            this.Flag = node.flag;
            this.ID = node.id;
            this.IsActive = node.isActive;
            this.Name = node.name;
            this.NodeType = node.nodeType;
            this.UserID = node.user.User_ID;
        }
        public static CategoryElement[] GetMany(CategoryTree.CategoryNode[] array)
        {
            CategoryElement[] ret = new CategoryElement[array.Length];
            for (int i = 0; i < array.Length; i++)
            {
                ret[i] = new CategoryElement(array[i]);
            }
            return ret;
        }
        public DateTime CreationTime;
        public DateTime EmptyTime;
        public int Flag;
        public int ID;
        public bool IsActive;
        public string Name;
        public int NodeType;
        public int UserID;
    }
}
